<template>
  <div class="404">
    <h1>人在旅途，难免迷路，好在你有传智！！！高薪不是梦</h1>
    <p>您将在 {{ times }} 秒后，回到首页</p>
  </div>
</template>

<script>
export default {
  data () {
    return {
      times: 5,
      timerId: null
    }
  },
  created () {
    this.timerId = setInterval(() => {
      if (this.times <= 1) {
        clearInterval(this.timerId)
        this.$router.push('/home')
        return
      }

      this.times--
    }, 1000)
  }
}
</script>

<style>
</style>
